//
//  ViewController.m
//  Radar
//
//  Created by 吴浪 on 16/2/1.
//  Copyright © 2016年 吴浪. All rights reserved.
//

#import "ViewController.h"
#import "LYRadarView.h"
#import "UIView+Common.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor blackColor];
    LYRadarView *radarView = [LYRadarView viewWithColor:nil];
    radarView.targets = 100;
    radarView.frame = CGRectMake(100, 100, 100, 100);
    radarView.center = self.view.center;
    [radarView addTarget:self action:@selector(btnClik:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:radarView];
//    CATransform3D transform = CATransform3DMakeRotation(M_PI_4 * 1.5, 1, 0, 0);
//    radarView.layer.transform = transform;
    
}

- (void)btnClik:(LYRadarView *)btn {
    [btn setNeedsDisplay];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
